<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>初始vue</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <!-- 准备好一个容器 -->
    <div id="root">
        <h1>hello,{{msg}}.</h1>
    </div>

    <script>
        //创建一个vue的实例对象
        new Vue({
            el: '#root',
            data: {
                msg: '来了,vue...'
            }
        })
    </script>
</body>
</html>